summaryrefslogtreecommitdiff
path: root/src/options.h
blob: 4ac030bc91b5feb037dda2ddbd9b54843eda576c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef OPTIONS_H
#define OPTIONS_H

#include <bu/singleton.h>
#include <bu/string.h>
#include <bu/array.h>

class Options : public Bu::Singleton<Options>
{
friend class Bu::Singleton<Options>;
private:
	Options();
	virtual ~Options();

public:
	void parse( int argc, char *argv[] );

	Bu::String sFile;
	Bu::String sInterface;
	Bu::String sCommand;

protected:
	int version( Bu::Array<Bu::String> aArgs );
	int builtins( Bu::Array<Bu::String> aArgs );
	int smlTest( Bu::Array<Bu::String> aArgs );
	int smlHelp( Bu::Array<Bu::String> aArgs );
	int nonOption( Bu::Array<Bu::String> aArgs );
	int printResult( Bu::Array<Bu::String> aArgs );
};

#endif